package org.zfes.snowier.zbss.xzy.store.repository.api;

import java.io.Serializable;
import java.util.Map;

public class StoreDataMsg implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String tableName;
	private Long tenantId;
	
	private Map<String,Object> dataMap;
	public StoreDataMsg() {
		super();
	}
	public StoreDataMsg(String tableName, Map<String, Object> dataMap) {
		super();
		this.tableName = tableName;
		this.dataMap = dataMap;
	}

	public String getTableName() {
		return tableName;
	}

	public StoreDataMsg setTableName(String tableName) {
		this.tableName = tableName;
		return this;
	}

	public Map<String, Object> getDataMap() {
		return dataMap;
	}

	public StoreDataMsg setDataMap(Map<String, Object> dataMap) {
		this.dataMap = dataMap;
		return this;
	}

	public Long getTenantId() {
		return tenantId;
	}
	public StoreDataMsg setTenantId(Long tenantId) {
		this.tenantId = tenantId;
		this.dataMap.put("tenantid", tenantId);
		return this;
	}
	@Override
	public String toString() {
		return "DataMsg [tableName=" + tableName + ", tenantId=" + tenantId + ", dataMap=" + dataMap + "]";
	}
	

}
